// let BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
// .BundleAnalyzerPlugin

module.exports = {
   //publicPath: "./", // 基本路径
  // configureWebpack: {
  //   plugins: [new BundleAnalyzerPlugin()]
  // },

  devServer: {
    // open: process.platform === 'darwin',
    // host: '127.0.0.1',
    port: 8080,
    https: false
    // hotOnly: false,
    // // 查阅 https://github.com/vuejs/vue-doc-zh-cn/vue-cli/cli-service.md#配置代理
    // proxy: null, // string | Object
    // before: app => {
    //   // `app` 是一个 express 实例
    // }
  },
  configureWebpack: {
    performance: {
      hints: 'warning',
      maxEntrypointSize: 50000000,
      maxAssetSize: 30000000,
      assetFilter: function (assetFilename) {
        return assetFilename.endsWith('.js')
      }
    }
  },
  pluginOptions: {
    i18n: {
      locale: 'zh',
      fallbackLocale: 'en',
      localeDir: 'locales',
      enableInSFC: true
    }
  }
}
